package k2_oop.p6_relation.demo07;

public class TestDemo7 {
    public static void main(String[] args) {

        General general = new General("李宗波",1000);

        general.attack(new Knife());
        General general1 = new General("李波宗",10);
        general1.attack(new Bow());
        general1.attack(new Spear());

    }
}
